<template>
  <div class="chat-container">
    <header class="chat-header">
      <div class="chat-header-left">
        <img src="https://alicdn.antdv.com/v2/assets/logo.1ef800a8.svg" />
        <h1 style="color:#262E47">中古商家管理系统</h1>
      </div>
      <div style="margin-right: 12px">
        <HeaderRightContent />
      </div>
    </header>
    <div class="main">
      <router-view />
    </div>
  </div>
</template>
<script setup>
import HeaderRightContent from "./header/HeaderRightContent.vue";
</script>
<style lang="less" scoped>
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #f0f2f5;
  .chat-header {
    height: 48px;
    background-color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    .chat-header-left {
      display: flex;
      align-items: center;
      img {
        height: 28px;
      }
      h1 {
        height: 32px;
        margin: 0 0 0 12px;
        color: #ffffff;
        font-weight: 600;
        font-size: 18px;
        line-height: 32px;
      }
    }
  }
  .main {
    height: calc(100vh - 48px);
    margin-top: 48px;
  }
}
</style>
